home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_5.lha / 8_5 / ferror.c < prev    next >
Text File  |  1993-08-08  |  288b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / return TRUE if an error condition exists
  6. nt ferror(FILE *f)
  7.  
  8.    if (f->mode == input)
  9. return !f->in->good();
  10.  
  11.    else
  12. return !f->out->good();
  13.  
  14.